package com.taotao.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.taotao.common.pojo.TaotaoResult;
import com.taotao.search.service.SearchItemService;

@Controller
public class ImportIndexController {

	//注入service
	@Autowired
	private SearchItemService service;
	/*url:"/index/importAll",
	type:"GET",*/
	@RequestMapping(value="/index/importAll",method=RequestMethod.GET)
	@ResponseBody
	public TaotaoResult importIndex() throws Exception {
		return service.getAllSearchItems();
	}
	
}
